# Contributor: Guy Godfroy <guy.godfroy@gugod.fr>
# Maintainer: Guy Godfroy <guy.godfroy@gugod.fr>
pkgname=synadm
pkgver=0.46
pkgrel=1
pkgdesc="Command line admin tool for Synapse"
url="https://github.com/JOJ0/synadm"
arch="noarch"
license="GPL-3.0-or-later"
depends="py3-tabulate py3-click py3-requests py3-yaml py3-click-option-group py3-dnspython"
makedepends="py3-gpep517 py3-setuptools py3-wheel"
source="$pkgname-$pkgver.tar.gz::https://github.com/JOJ0/synadm/archive/refs/tags/v$pkgver.tar.gz"
options="!check" #no check provided
subpackages="$pkgname-pyc"

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl
}

sha512sums="
f997e9240ee35a692adb32f10e967baf4e9efa031471e451bf016e4de3fd9124cca18b85478f453954a7abe68fec193500cb27d8311bf7cd8e3fb22c3804dc96  synadm-0.46.tar.gz
"
